﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Visifire.Charts;

namespace CPPEI.Coolzon.UI.DataPartLib
{
    public class ValueFlag
    {
        public double BeginValue;
        public double EndValue;
        public double DeltaValue { get; private set; }
        public DataPoint DataPoint { get; set; }
        public DataSeries DataSeries { get; set; }
        /// <summary>
        /// 所在串中的位置
        /// </summary>
        public int Index { get; set; }

        public ValueFlag(double begin, double end, DataPoint dataPoint)
        {
            BeginValue = begin;
            EndValue = end;
            DeltaValue = EndValue - BeginValue;
            DataPoint = dataPoint;
        }
        public ValueFlag(double begin, double end, DataSeries dataSeries, DataPoint dataPoint)
        {
            BeginValue = begin;
            EndValue = end;
            DeltaValue = EndValue - BeginValue;
            DataSeries = dataSeries;
            DataPoint = dataPoint;
        }
        public ValueFlag(double begin, double end, DataSeries dataSeries, DataPoint dataPoint, int index)
        {
            BeginValue = begin;
            EndValue = end;
            DeltaValue = EndValue - BeginValue;
            DataSeries = dataSeries;
            DataPoint = dataPoint;
            Index = index;
        }
    }
}
